<template>
  <div>
    <TypeNav />
    <MainContainer />
    <Recom />
    <Floor v-for="floor in floorList" :key="floor.id" :list="floor" />
  </div>
</template>

<script>
import MainContainer from "./MainContainer";
import Recom from "./Recom";
import Floor from "./Floor";
import { mapState } from "vuex";
export default {
  name: "",
  components: {
    MainContainer,
    Recom,
    Floor,
  },
  computed: {
    ...mapState({
      floorList: (state) => state.home.floorList,
    }),
  },
  mounted() {
    this.$store.dispatch("getFloorList");
  },
};
</script>

<style lang="css" scoped></style>
